import os

# print("gg")

# os.system("cls")

# 删除一个指定文件

# f = open("E:\ 1 \ foo.txt", "w")
# os.remove("E:\\1\\1.txt")


# file_list  = os.listdir(path)

# for f in file_list:
#     url = path+"\\"+f
#    if os.path.isdir(f):
#         print(url)
#         os.rmdir(url)
#     else:
#         os.remove(url)

#path = r'E:\abdc'
#file_list  = os.listdir(path)

#def list_dir(lpath):
#    list1 = os.listdir(lpath)
#    for f in list1:
#       file_name = os.path.join(lpath,f)
#        print(file_name)


#list_dir(path)

from datetime import datetime
print(datetime.now())
print(datetime.now().replace(microsecond=0))

dt = datetime.now()
print(dt.timestamp())